package com.example.chenjun.myapplication.mvp.presenter;

import com.example.chenjun.myapplication.bean.LabelBean;
import com.example.chenjun.myapplication.mvp.contract.LabelsContract;
import com.example.chenjun.myapplication.net.netcallback.BaseCallback;
import com.example.chenjun.myapplication.net.netcallback.ListCallback;
import com.example.chenjun.myapplication.util.Logger;

import org.json.JSONObject;

import java.util.List;

public class LabelsPresenter extends LabelsContract.AbstractLabelsPresenter {
    @Override
    public void getCookLabel() {
        getModel().getCookLabel(new ListCallback<List<LabelBean>>() {
            @Override
            public void onResponse(List<LabelBean> list) {
                getView().getLabelsSuccess(list);
            }

            @Override
            public void onError(Exception e) {

            }
        });
    }
}
